package org.goldenport.g3.sample

import org.goldenport.g3._
import org.goldenport.g3.messages._
import org.goldenport.g3.messages.query._
import org.goldenport.g3.messages.sql._

/**
 * @since   Aug. 13, 2010
 * @version Sep.  7, 2010
 * @author  ASAMI, Tomoharu
 */
class SqlSelect extends G3Application with UseRecord {
  sqlspace('mydb)

  val sql = Select(
    RecordQuery(IdPattern(SqlSpec.TABLE_NAME, 'id, 5))(AllFieldSlot(SqlSpec.TABLE_NAME))
  )

  start(sql) invoke("mydb")
}
